package com.zhiyou100.blog.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author shkstart
 * @create 2021-10-22 10:11
 */
public class User implements Serializable {

    private Integer uid;
    private String uname;
    private String upwd;
    private String usex;
    private Date uchangeTime;
    private String uphoto;
    private Integer uscore;
    private Integer ustatus;
    private List<User> fen;
    private String lv;
    private boolean zan; //true 赞 //字节的赞和虚
    private boolean xu;  //false  虚
    private List<Endorse> listZan ; //别人给他点赞和虚
    private List<Endorse> listXu; //别人给他点赞和虚

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", uname='" + uname + '\'' +
                ", upwd='" + upwd + '\'' +
                ", usex='" + usex + '\'' +
                ", uchangeTime=" + uchangeTime +
                ", uphoto='" + uphoto + '\'' +
                ", uscore=" + uscore +
                ", ustatus=" + ustatus +
                ", fen=" + fen +
                ", lv='" + lv + '\'' +
                ", zan=" + zan +
                ", xu=" + xu +
                ", listZan=" + listZan +
                ", listXu=" + listXu +
                '}';
    }

    public List<Endorse> getListZan() {
        return listZan;
    }

    public void setListZan(List<Endorse> listZan) {
        this.listZan = listZan;
    }

    public List<Endorse> getListXu() {
        return listXu;
    }

    public void setListXu(List<Endorse> listXu) {
        this.listXu = listXu;
    }

    public boolean isZan() {
        return zan;
    }

    public void setZan(boolean zan) {
        this.zan = zan;
    }

    public boolean isXu() {
        return xu;
    }

    public void setXu(boolean xu) {
        this.xu = xu;
    }

    public List<User> getFen() {
        return fen;
    }

    public void setFen(List<User> fen) {
        this.fen = fen;
    }

    public String getLv() {
        return lv;
    }

    public void setLv(String lv) {
        this.lv = lv;
    }

    public User(Integer uid, String uname, String upwd, String usex, Date uchangeTime, String uphoto, Integer uscore,
                Integer ustatus) {
        super();
        this.uid = uid;
        this.uname = uname;
        this.upwd = upwd;
        this.usex = usex;
        this.uchangeTime = uchangeTime;
        this.uphoto = uphoto;
        this.uscore = uscore;
        this.ustatus = ustatus;
    }

    public User() {
        super();
    }

    public User(String uname, String upwd, String usex, Date uchangeTime, String uphoto, Integer uscore,
                Integer ustatus) {
        super();
        this.uname = uname;
        this.upwd = upwd;
        this.usex = usex;
        this.uchangeTime = uchangeTime;
        this.uphoto = uphoto;
        this.uscore = uscore;
        this.ustatus = ustatus;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getUpwd() {
        return upwd;
    }

    public void setUpwd(String upwd) {
        this.upwd = upwd;
    }

    public String getUsex() {
        return usex;
    }

    public void setUsex(String usex) {
        this.usex = usex;
    }

    public Date getUchangeTime() {
        return uchangeTime;
    }

    public void setUchangeTime(Date uchangeTime) {
        this.uchangeTime = uchangeTime;
    }

    public String getUphoto() {
        return uphoto;
    }

    public void setUphoto(String uphoto) {
        this.uphoto = uphoto;
    }

    public Integer getUscore() {
        return uscore;
    }

    public void setUscore(Integer uscore) {
        this.uscore = uscore;
    }

    public Integer getUstatus() {
        return ustatus;
    }

    public void setUstatus(Integer ustatus) {
        this.ustatus = ustatus;
    }

}
